package class01;

/**
 * @author zl
 */
public class Main1 {
    public static void main(String[] args) {
        /**
         * i表示公鸡
         * j表示母鸡
         * k表示小鸡
         */
        int i, j, k;
        for (i = 0; i <= 20; i++) {
            for (j = 0; j < 34; j++) {
                k = 100 - i - j;
                if (100 == 5 * i + 3 * j + 1 / 3.0 * k) {
                    System.out.println("公鸡:"+i+","+"母鸡:"+j+","+"小鸡:"+k);
                }
            }
        }
    }
}
